home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5952 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  877 b 

  1. Path: news.uni-jena.de!news
  2. From: mkt@isun04.inf.uni-jena.de (Tilo Koerbs)
  3. Newsgroups: comp.lang.c++
  4. Subject: default argument problem on rs6000
  5. Date: 7 Feb 1996 13:50:33 GMT
  6. Organization: Lehrstuhl fuer Rechnerarchitektur- und kommunikation, FSU Jena
  7. Message-ID: <4faan9$1rp@fsuj01.rz.uni-jena.de>
  8. Reply-To: mkt@isun04.inf.uni-jena.de
  9. NNTP-Posting-Host: isun07.inf.uni-jena.de
  10.  
  11. When compiling the following code on an rs6000 (ibm) I get an error:
  12.  
  13.     struct X {
  14.             static int f() throw();
  15.             X(int i = f());
  16.     };
  17.     inline int X::f() { return 0; }
  18.  
  19. Error message:    "X::f()" was declared with external linkage
  20.         and called before it is defined as inline.
  21.  
  22. No other compiler reports an error.
  23. And I cannot find a constructor call in that code nor can I believe
  24. that the declaration of the destructor will evaluate f() .
  25.  
  26. Any comments?
  27. Bye.
  28. Tilo Koerbs,  mkt@uni-jena.de
  29.  
  30.  
  31.